<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" type="text/css" th:href="@{../layui/dist/css/layui.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/wzwfbxg.css}"/>
    <script th:src="@{/js/jquery-3.6.0.js}"></script>
    <script th:src="@{/js/wjfUpd.js}"></script>
</head>
<body>
<div class="myTable">
    <table border="0" class="layui-table tab1">
        <tr align="center">
            <td>部门：</td>
            <td><select class="layui-input layui-select-disabled brId" id="brNameXiaLak">
                <option value="0" >请选择</option>
                <option th:each="bumen:${branchList}" th:text="${bumen.getBrName()}" th:value="${bumen.getId()}" th:selected="${bumen.getId()}==${jobs.getBrId()}"></option>
            </select></td>
            <td>招聘类型：</td>
            <td><select class="layui-input joType">
                <option value="">请选择</option>
                <option value="社会招聘" th:if="${jobs.getJoType()}=='社会招聘'" th:selected="selected">社会招聘</option>
                <option value="校园招聘" th:if="${jobs.getJoType()}=='校园招聘'" th:selected="selected">校园招聘</option>

            </select></td>
            <td>招聘人数：</td>
            <td><input type="text" class="layui-input joCount" th:value="${jobs.getJoCount()}"/></td>
        </tr>
        <tr align="center">
            <td>职位名称：</td>
            <td><select  class="layui-input layui-select-disabled posId" id="posNameXiaLaK" onchange="showCode()">
                <option value="">请选择</option>
                <option th:each="l:${positionList}" th:value="${l.getId()}" th:id="${l.getPosCode()}" th:name="${l.getPosType()}" th:text="${l.getPosName()}"  th:selected="${l.getPosName()}==${jobs.getPosition().getPosName()}"></option>
            </select></td>
            <td>职位编码：</td>
            <td><input type="text" class="layui-input posCode" id="bianma" th:value="${jobs.getPosition().getPosCode()}"/></td>
            <td>职位分类：</td>
            <td><input type="text" class="layui-input posType" id="fenlei" th:value="${jobs.getPosition().getPosType()}"/></td>
        </tr>
        <tr align="center">
            <td>登记人：</td>
            <td><input type="text" class="layui-input registrant" th:value="${jobs.getRegistrant()}"/></td>
            <td>登记时间：</td>
            <td><input type="date" class="layui-input layui-laydate startTime" th:value="${#dates.format(jobs.getStartTime(),'yyyy-MM-dd')}"/></td>
            <td>截止日期：</td>
            <td><input type="date" class="layui-input layui-laydate endTime" th:value="${#dates.format(jobs.getEndTime(),'yyyy-MM-dd')}"/></td>
        </tr>
        <tr align="center">
            <td>职位描述：</td>
            <td colspan="5"><textarea class="layui-textarea jobDescribe" th:text="${jobs.getJobDescribe()}"></textarea></td>
        </tr>
        <tr align="center">
            <td>招聘要求：</td>
            <td colspan="5"><textarea class="layui-textarea jobRequire" th:text="${jobs.getJobRequire()}"></textarea></td>
        </tr>
        <input type="hidden" th:value="${jobs.getId()}" class="id"/>
    </table>
    <div class="layui-btn-container button">
        <button type="button" class="layui-btn" onclick="updJob()">提交</button>
        <button type="button" class="layui-btn" onclick="fanHui()">返回</button>
    </div>

</div>
</body>
</html>
